<template>
  <el-card>
    <el-row type="flex" justify="space-between">
      <el-col>
        <div v-if="showBefore" class="before">
          <i class="el-icon-info" />
          <span>
            <!-- 使用插槽 -->
            <slot name="before" />
          </span>
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <!-- <el-button size="medium" type="success">excel导入</el-button>
          <el-button size="medium" type="primary">普通excel导出</el-button>
          <el-button size="medium" type="warning">新增员工</el-button> -->
          <!-- 使用插槽 -->
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: false
    }
  }

}
</script>

<style lang="scss" scoped>
.before{
    display: inline-block;
    border: 2px solid rgba(145, 213, 255, 1);
    background: rgba(230, 247, 255, 1);
    border-radius: 3px;
    padding: 10px 15px;

    i {
        color: #409eff;
        margin-right: 10px;
    }
    span {
        font-size: 14px;
    }
}

</style>
